/*
 * File:    AccessControlInterface.java
 * Created: 02-Feb-2008
 * Version: $Id$
 *
 * COPYRIGHT (C) 2008, Bitgate Software, LLC.  All Rights Reserved.
 *
 * software@bitgatesoftware.com
 */

package com.bitgate.util.service.acl;

import java.net.Socket;

/**
 * This is an interface that is used to control access to the system via a list of IPs.
 * 
 * @author kenji
 * @since 0.8.1
 */
public interface AddressVerifierInterface
{
	/**
	 * Determines whether or not an IP address matches the known list of access control addresses.  This can be used
	 * to match just the IP address, or IP address and port.  It's up to the code to do decide how to match.
	 * 
	 * @param address
	 * @return <code>true</code> if the ACL matches, <code>false</code> otherwise.
	 */
	boolean matches(Socket address);
}